<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>username:[[${name}]]</h1>
    <h1>state:[[${state}]]</h1>

    <h1>City List</h1>
    <ul>
        <li th:each="city:${citys}">[[${city}]]</li>
    </ul>

    <h1>请选择所属城市:</h1>
    <select>
        <option th:each="city:${citys}" th:text="${city}">默认值(服务器运行就会被${city}的内容替代)</option>
    </select>
</body>
</html>